home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’93 / Listen to your hack…beat / trap patches / utils.h < prev   
Encoding:
Text File  |  1993-06-17  |  406 b   |  10 lines  |  [TEXT/KAHL]

  1. void PatchTrap(short trapWord,short trapType,ProcPtr newAddress,Ptr *linkAddress);
  2.  
  3. #define RememberA4()    do { __GetA4(); asm { move.l a4,(a1) } } while (0)
  4. #define RememberA0()    do { __GetA4(); asm { move.l a0,(a1) } } while (0)
  5.  
  6. void __GetA4(void);
  7.  
  8. #define SetUpA4()        do { asm { move.l a4,-(sp) } __GetA4(); asm { move.l (a1),a4 } } while (0)
  9. #define RestoreA4()        do { asm { move.l (sp)+,a4 } } while (0)
  10.